package org.jsbd.boss.dao.impl;

import java.util.HashMap;
import java.util.Map;

import org.jsbd.boss.common.DataGridModel;
import org.jsbd.boss.dao.IHefenDAO;
import org.jsbd.boss.domian.HefenVO;
import org.springframework.stereotype.Repository;

@Repository("hefenDao")
public class HefenDAOImpl extends CrackStatisticsBaseDao implements IHefenDAO {

	@Override
	public Map<String, Object> findDataWithPage(DataGridModel page, HefenVO hefenVO) {
		hefenVO = (hefenVO == null ? new HefenVO() : hefenVO);
		hefenVO.setPageInfo(page);
	    Map<String, Object> results = new HashMap<String, Object>();
	    results.put("total", super.queryForCount("qy_channel_hefen_statistics.SELECT_COUNT", hefenVO));
	    results.put("rows", super.queryForList("qy_channel_hefen_statistics.SELECT_LIST", hefenVO));
	    return results;
	}

}
